package com.bwie.controller;

import com.bwie.service.UnitService;
import com.bwie.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TaoShiHao
 * @Date: 2025/5/27 16:12
 * @Description:
 **/

@RestController
@RequestMapping("/shop/unit")
@Api(tags = "单位管理")
public class UnitController {
    @Autowired
    UnitService unitService;

    @PostMapping("/getUnitList")
    @ApiOperation(value = "查询所有单位")
    public Result getUnitList(){
        return unitService.getUnitList();
    }
}
